﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using AFT.Parking.Entity
@model SecurityRecord
<div class="content-box">
    <!-- Content box header -->
    <div class="content-box-header clearfix">
        <h3>添加物资信息表</h3>
    </div>

    <!-- Content box body -->
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab2">
            <form method="post" id="frm">
                <fieldset>
                    @Html.Hidden("Id",Model.Id)
                    @Html.Hidden("TagId", Model.TagId)
                    <p>
                        <label>标题</label>
                        @Html.TextBox("TitleName", Model.TitleName, new {@class = "text-input x-input"})
                    </p>

                    <div class="x-tab-item">
                        <p>
                            <label>二维码名称 (注：请保证二维码名称不一致，便于区分)</label>
                            @if (Model.Id > 0)
                            {
                                @Html.TextBox("TagName", Model.TagName, new { @class = "text-input x-input", @readonly = "readonly", style = "background: #E4E4E4;cursor:not-allowed" })
                            }
                            else
                            {
                                @Html.TextBox("TagName", Model.TagName, new { @class = "text-input x-input" })
                            }
                        </p>
                        <p>
                            <label>工程名称</label>
                            @Html.TextBox("ProjectName", Model.ProjectName, new { @class = "text-input x-input" })
                        </p>
                        <p>
                            <label>主体劳务队</label>
                            @Html.TextBox("MajorCompany", Model.MajorCompany, new {@class = "text-input x-input"})
                        </p>
                        <p>
                            <label>工程部位</label>
                            @Html.TextBox("ConstructionName", Model.ConstructionName, new {@class = "text-input x-input"})
                        </p>
                        <div class="x-left">
                            <p>
                                <label>混泥土强度</label>
                                @Html.TextBox("ConcreteStrength", Model.ConcreteStrength, new {@class = "text-input x-left-input"})
                            </p>
                            <p>
                                <label>浇注日期</label>
                                <input type="text" id="PouringDate" name="PouringDate" class="text-input x-left-input" value="@Model.PouringDate.GetValueOrDefault(DateTime.Today).ToString("yyyy-MM-dd")"/>
                            </p>
                            <p>
                                <label>平整度</label>
                                @Html.TextBox("Smoothness", Model.Smoothness, new {@class = "text-input x-left-input"})
                            </p>
                            <p>
                                <label>轴线偏差</label>
                                @Html.TextBox("AxisOffset", Model.AxisOffset, new {@class = "text-input x-left-input"})
                            </p>
                            <p>
                                <label>责任人</label>
                                @Html.TextBox("ResponsiblePerson", Model.ResponsiblePerson, new {@class = "text-input x-left-input"})
                            </p>
                        </div>
                        <div class="x-left">
                            <p>
                                <label>层高</label>
                                @Html.TextBox("Height", Model.Height, new {@class = "text-input x-left-input"})
                            </p>
                            <p>
                                <label>垂直度</label>
                                @Html.TextBox("Verticality", Model.Verticality, new {@class = "text-input x-left-input"})
                            </p>
                            <p>
                                <label>截面尺寸偏差</label>
                                @Html.TextBox("CrossSecDeviation", Model.CrossSecDeviation, new {@class = "text-input x-left-input"})
                            </p>
                            <p>
                                <label>复核人</label>
                                @Html.TextBox("Reviewer", Model.Reviewer, new {@class = "text-input x-left-input"})
                            </p>
                            <p>
                                <label>劳务责任人</label>
                                @Html.TextBox("ServicePerson", Model.ServicePerson, new {@class = "text-input x-left-input"})
                            </p>
                        </div>

                        <div style="clear: both;"></div>
                        <p>
                            <label>工程概况</label>
                            @Html.TextArea("ProjectProfile", Model.ProjectProfile, 2, 0, new {@class = "text-input", @style = "width:700px !important;"})
                        </p>
                        <p class="x-btns">
                            <input class="button x-btn" type="submit" id="btnSubmit" value="&nbsp;保 存&nbsp;"/>
                            <input class="button x-btn" type="button" id="btnBack" value="&nbsp;返 回&nbsp;"/> <br/>
                            <span class="input-notification @ViewBag.Icon png_bg">@ViewBag.Message</span>
                            <input type="hidden" id="hd_backUrl" value="@Url.Action("SecurityRecordList")">
                        </p>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(function () {
        laydate({
            elem: '#PouringDate'
        });
    });
</script>